#!/usr/bin/env bash

curl http://127.0.0.1:2003/pro/v1/chart/init/initAllBiMapping -X POST -H 'Content-type: application/json' -d '{"frontDev":"1","corpid": "1", "userId" : "1","platform":"web","xbbCode":"123456","code":12324}'

#老仓库表到新仓库表的迁移
curl http://127.0.0.1:2003/pro/v1/chartScript/init/reChart?xbbCode=123456&corpid=1&userId=1&platform=web

#套餐的预判
curl http://127.0.0.1:2003/pro/v1/chartScript/chartLimit?corpid=1&userId=1&platform=web&xbbCode=123456

#正常的更新
curl http://127.0.0.1:2003/pro/v1/chart/init/updateBIData?corpid=1&userId=1&platform=web&xbbCode=123456

#定时删除(可以每周执行一次)
curl http://127.0.0.1:2003/pro/v1/chartScript/init/deleteWareHouse?corpid=1&userId=1&platform=web&xbbCode=123456

#更新解释，负责人和地址字段,采购合同供应商字段中的screenType属性
curl http://127.0.0.1:2019/pro/v1/script/bi/init/biFixScreenType -X POST -H 'Content-type: application/json' -d '{"frontDev":"1","corpid": "1","userId" : "1","platform":"web","xbbCode":"123456"}'

#tb_chart_favorite更新statistics_type字段
curl http://127.0.0.1:2019/pro/v1/script/bi/init/biFormatChartFavorite -X POST -H 'Content-type: application/json' -d '{"frontDev":"1","corpid": "1","userId" : "1", "platform":"web","xbbCode":"123456"}'

#更新tb_pro_index_set表信息，刷脚本
curl http://127.0.0.1:2019/pro/v1/script/bi/init/biFormatIndexSet -X POST -H 'Content-type: application/json' -d '{"frontDev":"1","corpid": "1","userId" : "1","platform":"web", "xbbCode":"123456"}'

#老表的search
curl http://127.0.0.1:2003/pro/v1/chartScript/chartSearch?corpid=1&userId=1&platform=web&xbbCode=123456&chartId=1234&notCorpidList=ding464c4bae11043b92f5bf40eda33b7ba0,1

#更新图片字段的screenType
curl http://127.0.0.1:2019/pro/v1/script/bi/init/biFixPicScreenType -X POST -H 'Content-type: application/json' -d '{"frontDev":"1","corpid": "1","userId" : "1","corpidList":[],"platform":"web","xbbCode":"123456"}'

#更新统计图中的数据，添加label字段
curl http://127.0.0.1:2003/pro/v1/chartScript/init/labelChart?xbbCode=123456&corpid=1&userId=1&platform=web

# 刷产品的ScreenType 2401    "num_7","num_9","num_10","num_40","num_11"  num_13（web 脚本）
curl http://127.0.0.1:2019/pro/v1/script/bi/init/biFixScreenTypeByBuss -X POST -H 'Content-type: application/json' -d '{"frontDev":"1","corpid": "1","userId" : "1","platform":"web","xbbCode":"123456","businessType":2401,"corpidList":[],"attrList":["num_7","num_9","num_10","num_40","num_11","num_13"]}'

# 刷根据记录的的ScreenType  501   text_5  text_6  text_3
curl http://127.0.0.1:2019/pro/v1/script/bi/init/biFixScreenTypeByBuss -X POST -H 'Content-type: application/json' -d '{"frontDev":"1","corpid": "1","userId" : "1","platform":"web","xbbCode":"123456","businessType":501,"corpidList":[],"attrList":["text_5","text_6","text_3"]}'

# 付款账户、收款账户字段统一格式化为字符串格式
curl http://127.0.0.1:2019/pro/v1/script/fund/init/fundAccountAttr -X POST -H 'Content-type: application/json' -d '{"frontDev":"1","corpid": "1","userId" : "1","platform":"web","xbbCode":"123456","addTime" : 1587052800,"greaterOrLess": 0}'

# 老数据删除地址字段
curl  http://127.0.0.1:2003/pro/v1/chartScript/init/delAddress?xbbCode=123456&corpid=1&userId=1&platform=web
